import { Module } from '@nestjs/common'
import { TypeOrmModule } from '@nestjs/typeorm'
import { OrderEntity } from './entities/order.entity'
import { OrderItemEntity } from './entities/order-item.entity'
import { OrderController } from './order.controller'
import { OrderService } from './order.service'
import { AuthModule } from '../auth/auth.module'
// import { ScheduleModule } from '@nestjs/schedule'
import { OrderScheduleService } from './schedule/order-schedule.service'
// 导入评价相关的实体和服务
import { OrderScoreEntity } from './entities/order-score.entity'
import { OrderScoreService } from './score/order-score.service'
import { UserEntity } from '../user/entities/user.entity'
import { PointsModule } from '../points/points.module'

@Module({
  imports: [
    TypeOrmModule.forFeature([OrderEntity, OrderItemEntity, OrderScoreEntity, UserEntity]),
    AuthModule,
    // ScheduleModule.forRoot(),
    PointsModule,
  ],
  controllers: [OrderController],
  providers: [OrderService, OrderScheduleService, OrderScoreService],
})
export class OrderModule { }